package ArrayListExercise;

public class Test {
    public static void main(String[] args) {
        MyArrayList myArrayList=new MyArrayList();
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(4);
        myArrayList.display();

        myArrayList.add(0,100);
        myArrayList.add(1,200);
        myArrayList.add(2,300);
        myArrayList.display();

        System.out.println(myArrayList.contains(100));
        System.out.println(myArrayList.contains(400));

        System.out.println(myArrayList.toFind(100));
        System.out.println(myArrayList.toFind(400));

    }
}
